import { request } from "@/utils/request";
import type { ActResponse } from "@/types/topic";

// 获取话题详情
export const getTopicDetail = (actid: number): Promise<ActResponse> => {
  return request<ActResponse>({
    url: `/topic/detail`,
    method: "GET",
    data: { actid },
  });
};

// 获取话题详情热门动态
export const getTopicHotList = (actid: number): Promise<ActResponse> => {
  return request<ActResponse>({
    url: `/topic/detail/event/hot`,
    method: "GET",
    data: { actid },
  });
};
